package edu.cmu.vlis.wassup.databean;

import java.io.Serializable;

public class Event implements Serializable{
	
	private static final long serialVersionUID = -5101601441830640384L;

	private String hashId = "*"; // primary key
	
	private String name = null;
	private String description = "";
	private String url = null;
	
	private String startDate = null;
	private String endDate	= null;
	private String startTime = null;
	private String endTime	= null;
	
	private String street 	= null;
	private String city		= null;
	private String state	= null;
	private float latitude	= 0;
	private float longitude	= 0;
	
	private User sender = new User("");
	
	private int accepts = 0;
	private int rejects = 0;
	private int dontknow = 0;
	
	
	
	public int getAccepts() {
		return accepts;
	}

	public void setAccepts(int accepts) {
		this.accepts = accepts;
	}

	public int getRejects() {
		return rejects;
	}

	public void setRejects(int rejects) {
		this.rejects = rejects;
	}

	public int getDontknow() {
		return dontknow;
	}

	public void setDontknow(int dontknow) {
		this.dontknow = dontknow;
	}

	/**
	 * Constructor takes primary keys as arguments
	 * @param announcement_id
	 */
	
	public Event() {
		
	}
	public Event(String hashId) {
		this.hashId = hashId;
	}
		
	public String getHashId() {
		return hashId;
	}

	public void setHashId(String hashId) {
		this.hashId = hashId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public float getLatitude() {
		return latitude;
	}

	public void setLatitude(float latitude) {
		this.latitude = latitude;
	}

	public float getLongitude() {
		return longitude;
	}

	public void setLongitude(float longitude) {
		this.longitude = longitude;
	}

	public User getSender() {
		return sender;
	}

	public void setSender(User sender) {
		this.sender = sender;
	}

	public String toString() {
		return " Event - " + name + " descr = " + description;
	}
}
